﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;
using DAL.LogicComponents;
using BAL.Entities;

namespace DigitalAnts.App_Code.BAL.Components
{
    public class clsFuelBAL
    {
        #region
        public static DataTable doFuelSelectList()
        {
            try
            {
                return clsFuelDAL.doFuelSelectList();
            }
            catch
            {
                throw;
            }
        }
        #endregion

        #region
        public static DataTable doFuelSelectListByID(clsFuel obj)
        {
            try
            {
                return clsFuelDAL.doFuelSelectListById(obj);
            }
            catch
            {
                throw;
            }
        }
        #endregion

        #region --- Add Fuel by User
        public static bool doAddNewFuel(clsFuel obj)
        {
            try
            {
                return clsFuelDAL.queryAddFuel(obj);
            }
            catch
            {
                throw;
            }
        }
        #endregion

        #region --- Update Fuel by User
        public static bool doUpdateFuel(clsFuel obj)
        {
            try
            {
                return clsFuelDAL.queryUpdateFuel(obj);
            }
            catch
            {
                throw;
            }
        }

        #endregion

        #region --- Check Fuel Exist
        public static bool CheckFuelExist(clsFuel obj)
        {
            try
            {
                return clsFuelDAL.CheckFuelExist(obj);
            }
            catch
            {
                throw;
            }
        }

        #endregion
    }
}